package com.JaMorant.SSM.thc.controller;


import com.JaMorant.SSM.result.Result;
import com.JaMorant.SSM.thc.service.DeliveryService;
import com.JaMorant.SSM.thc.service.GoodsConfigService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * 导入快递
 */
@RestController
@RequestMapping(value = "/admin/delivery")
public class DeliveryController {

    @Autowired
    private DeliveryService deliveryService;



    //城市分类导入
    //城市分类导入
    @ApiOperation("快递导入")
    @PostMapping("importData")
    public Result importData(MultipartFile file) {
        deliveryService.importData(file);
        return Result.ok(null);
    }

}

